<?include("../../config/config.php");
$DM->loadClass("tracker","company");
// create and instance class
$object_company = new company();
$object_company->id_company = array_key_exists("id_company",$_POST)?$_POST["id_company"]:""; 
$object_company->txt_cnpj = array_key_exists("txt_cnpj",$_POST)?$_POST["txt_cnpj"]:""; 
$object_company->bol = array_key_exists("bol",$_POST)?$_POST["bol"]:""; 
if ($object_company->save()){
	header("Location: company.list.php");
}else{
	exit("Erro ao salvar company");
}
?>
